import request from '@/utils/request'
/*
 * 资讯分类列表
 * 
 */
export function getTypeList() {
  return request({
    url: '/article/getTypeList',
    method: 'post',
    
  })
}

/*
 * 资讯列表
 * type
 */
export function getArticleList(page) {
  return request({
    url: '/article/list',
    method: 'post',
    data:page
    
  })
}

/*
 * 热门列表
 * 
 */
export function getHotList() {
  return request({
    url: '/article/hotList',
    method: 'post',
    
  })
} 


/*
 * 资讯详情
 * id
 */
export function articleInfo(id) {
  return request({
    url: '/article/info',
    method: 'post',
    data:{
    	id
    }
    
  })
} 